package com.vitalfit.model.dto;

import jakarta.validation.constraints.Max;
import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotEmpty;
import lombok.Data;

import java.util.List;

@Data
public class FoodOrderDTO {
    private Integer id;

    private String orderState;

    @Min(value = 1, message = "Minimum rating value is 1")
    @Max(value = 5, message = "Maximum rating value is 5")
    private Integer rating;

    @NotEmpty(message = "FoodOrderDetails cannot be null")
    private List<FoodOrderDetailDTO> foodOrderDetailDTOS;

}